cmake_minimum_required(VERSION 3.14.1)

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${INTARKDB_THRID_LIB_PATH})
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${INTARKDB_THRID_LIB_PATH})
set(LIBRARY_OUTPUT_PATH            ${INTARKDB_THRID_LIB_PATH})

add_subdirectory(cJSON-1.7.15)

file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/cJSON-1.7.15/cJSON_Utils.h DESTINATION ${INTARKDB_CJSON_PATH})
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/cJSON-1.7.15/cJSON.h DESTINATION ${INTARKDB_CJSON_PATH})
